﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QLNSClient
{
    public partial class uc_KhenthuongKyluat : UserControl
    {
        public uc_KhenthuongKyluat()
        {
            InitializeComponent();
        }

        private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            splCtrl_KhenthuongKyluat.Panel2.Controls.Clear();
            uc_dsKhenthuong dsKhenthuong = new uc_dsKhenthuong();
            dsKhenthuong.Dock = System.Windows.Forms.DockStyle.Fill;
            splCtrl_KhenthuongKyluat.Panel2.Controls.Add(dsKhenthuong);
        }

        private void nav_dsKyluat_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            splCtrl_KhenthuongKyluat.Panel2.Controls.Clear();
            uc_dsKyluat dsKyluat = new uc_dsKyluat();
            dsKyluat.Dock = System.Windows.Forms.DockStyle.Fill;
            splCtrl_KhenthuongKyluat.Panel2.Controls.Add(dsKyluat);
        }

        private void nav_themLoaiKhenthuong_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            splCtrl_KhenthuongKyluat.Panel2.Controls.Clear();
            uc_ThemloaiKhenthuong themLoaiKhenthuong = new uc_ThemloaiKhenthuong();
            themLoaiKhenthuong.Dock = System.Windows.Forms.DockStyle.Fill;
            splCtrl_KhenthuongKyluat.Panel2.Controls.Add(themLoaiKhenthuong);
        }

        private void nav_themLoaiKyluat_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            splCtrl_KhenthuongKyluat.Panel2.Controls.Clear();
            uc_ThemloaiKyluat themLoaiKyluat = new uc_ThemloaiKyluat();
            themLoaiKyluat.Dock = System.Windows.Forms.DockStyle.Fill;
            splCtrl_KhenthuongKyluat.Panel2.Controls.Add(themLoaiKyluat);
        }

        private void nav_themQDKhenthuong_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            splCtrl_KhenthuongKyluat.Panel2.Controls.Clear();
            uc_qdKhenthuong themQDKhenthuong = new uc_qdKhenthuong();
            themQDKhenthuong.Dock = System.Windows.Forms.DockStyle.Fill;
            splCtrl_KhenthuongKyluat.Panel2.Controls.Add(themQDKhenthuong);
        }

        private void nav_themQDKyluat_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            splCtrl_KhenthuongKyluat.Panel2.Controls.Clear();
            uc_qdKyluat themQDKyluat = new uc_qdKyluat();
            themQDKyluat.Dock = System.Windows.Forms.DockStyle.Fill;
            splCtrl_KhenthuongKyluat.Panel2.Controls.Add(themQDKyluat);
        }
    }
}
